<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32" style="width: 50%; left: 25%">
          <a-col :span="24">
            <a-form-model-item label="实施人姓名" prop="tz00703">
              <a-input v-model="form.tz00703" placeholder="请输入实施人姓名" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="实施时间" prop="tz00701">
              <a-date-picker
                v-model="form.tz00701"
                format="YYYY-MM-DD"
                mode="date"
                placeholder="请输入实施时间"
                @change="onChange"
              ></a-date-picker>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="被实施原因" prop="tz00706">
              <a-input v-model="form.tz00706" placeholder="请输入被实施原因" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="实施地点" prop="tz00702">
              <a-input v-model="form.tz00702" placeholder="请输入实施地点" />
            </a-form-model-item>
          </a-col>

          <a-col :span="24">
            <a-form-model-item label="被实施人姓名" prop="tz00704">
              <a-input
                v-model="form.tz00704"
                placeholder="请输入被实施人姓名"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="被实施人单位及职务" prop="tz00705">
              <a-input
                v-model="form.tz00705"
                placeholder="请输入被实施人单位及职务"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import BizTaizhang007EditForm from "./BizTaizhang007Form";
export default {
  ...BizTaizhang007EditForm,
};
</script>
